{"version":3,"file":"audioplayer.bundle.map.js","names":["this","BX","Vue3","exports","ui_fonts_opensans","main_polyfill_intersectionobserver","ui_vue3","main_core_events","State","Object","freeze","play","pause","stop","none","AudioPlayer","BitrixVue","mutableComponent","props","id","default","src","autoPlayNext","background","data","isDark","preload","loaded","loading","playAfterLoad","state","progress","progressInPixel","seek","timeCurrent","timeTotal","created","preloadRequestSent","registeredId","registerPlayer","$Bitrix","eventEmitter","subscribe","onPlay","onStop","onPause","onPreload","EventEmitter","mounted","getObserver","observe","$refs","body","beforeUnmount","unregisterPlayer","unsubscribe","unobserve","watch","value","preloadNext","methods","loadFile","source","clickToButton","setPosition","event","pixelPerPercent","track","offsetWidth","setProgress","currentTime","seeking","offsetX","percent","pixel","Math","round","formatTime","second","floor","hour","minute","toString","padStart","Data","set","Set","get","sort","a","b","filter","playNext","nextId","slice","emit","start","getData","initiator","audioEventRouter","eventName","duration","console","error","observer","IntersectionObserver","entries","forEach","entry","isIntersecting","target","threshold","computed","seekPosition","isMobile","progressPosition","labelTime","time","UA","navigator","userAgent","toLowerCase","includes","template","AudioPlayerState","Components","Event"],"sources":["audioplayer.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,KAAOF,KAAKC,GAAGC,MAAQ,CAAC,GAC/B,SAAUC,EAAQC,EAAkBC,EAAmCC,EAAQC,GAC/E;;;;;;;;IAUA,MAAMC,EAAQC,OAAOC,OAAO,CAC1BC,KAAM,OACNC,MAAO,QACPC,KAAM,OACNC,KAAM,SAER,MAAMC,EAAcT,EAAQU,UAAUC,iBAAiB,iBAAkB,CACvEC,MAAO,CACLC,GAAI,CACFC,QAAS,GAEXC,IAAK,CACHD,QAAS,IAEXE,aAAc,CACZF,QAAS,MAEXG,WAAY,CACVH,QAAS,UAIbI,OACE,MAAO,CACLC,OAAQ,MACRC,QAAS,OACTC,OAAQ,MACRC,QAAS,MACTC,cAAe,MACfC,MAAOtB,EAAMM,KACb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